﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BussinessProfileList.aspx.cs"
    Inherits="news_msn_BussinessProfileList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../edit/jquery/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../../edit/xheditor-zh-cn.src.js"></script>
    <script>
        $(document).ready(function () {
            $("#btnHideYearBao").click(function () {
                if ($("#btnHideYearBao").val() == "隐藏年报") {
                    $("#divYearBao").hide();
                    $("#btnHideYearBao").val("显示年报");
                } else {
                    $("#divYearBao").show();
                    $("#btnHideYearBao").val("隐藏年报");
                }
            })
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input id="btnHideYearBao" value="隐藏年报" type="button" />
    <div id="divYearBao">
        <div style="text-align: center">
            股票：<asp:Label ID="lblStock" runat="server" />
        </div>
        <div style="width: 800px">
            <asp:Localize ID="Localize1" runat="server"></asp:Localize>
        </div>
        <table class="data_list_table">
            <tr>
                <th>
                    项目
                </th>
                <th>
                    内容
                </th>
                <th>
                    修改
                </th>
                <th>
                    删除
                </th>
            </tr>
            <asp:Repeater ID="repeater1" runat="server" >
            <ItemTemplate>
            <tr>
                <td><%# Eval("Item") %></td>
                <td><%# Eval("Content") %></td>
                <td>
                      <a href='BussinessProfileList.aspx?id=<%# Eval("id") %>&stock=<%# Eval("stock") %>&enddate=<%# Eval("enddate","{0:yyyy-MM-dd}") %>'>
                                <img src="../../images/bt_edit.gif" alt="修改" title="修改" /></a> 
                           
                </td>
                <td>
                     <a href='BussinessProfileListDelete.aspx?id=<%# Eval("id") %>&stock=<%# Eval("stock") %>&EndDate=<%# Eval("EndDate","{0:yyyy-MM-dd}") %>' onclick="return confirm('确定删除？')">
                                    <img src="../../images/bt_del.gif" alt="删除" />
                      </a>
                </td>
            </tr>
            </ItemTemplate>
            </asp:Repeater>
        </table>
        </div>
        <br />
        标题<asp:TextBox ID="txtTitle" runat="server" Width="400px" />
        <br />
        内容<asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Width="600px" Height="200px"  />
        <br />
       <asp:Button ID="btnSave" Text="保存" runat="server" onclick="btnSave_Click" />
    <asp:Button ID="btnSetOver" runat="server" onclick="btnSetOver_Click" 
        Text="设置填写完成" />
    </form>
</body>
</html>
